package com.sun.jdk.fun;

import java.util.function.Predicate;

public class PredicateTest {

    public static void main(String[] args) {
        String name = "hello world";
        boolean result = test(name, (str) -> {
            return str.length() > 10;
        });
        System.out.println(result);
    }
    public static boolean test(String name, Predicate<String> predicate){
        return predicate.test(name);
    }
}
